local extension = Package:new("wegame1")
extension.extensionName = "water_wegame"

Fk:loadTranslationTable{
    ["wegame1"] = "WeGame-1",
    ["ym_water"] = "创游",
    ["ym_water_shi"] = "创游-势",
    ["chu"] = "楚",
}

local Utility = require "packages/water_wegame/utility"
Utility.loadSkillSkelsByPackage(extension,"ym_water")



--[[
local xunyu = General(extension, "ym_water__xunyu", "han", 3) -- 荀彧
xunyu:addSkills{
    "steam1__duji",
    "steam__huajin",
}


Fk:loadTranslationTable{
  ["ym_water__xunyu"] = "荀彧",
  ["#ym_water__xunyu"] = "白头如新",
  ["designer:ym_water__xunyu"] = "夜已央",
  
  ["steam1__duji"] = "睹机",
  [":steam1__duji"] = "出牌阶段限一次，你可令一名角色展示手牌并选择一项：1.将所有基本手牌当一张基本牌使用；2.将所有非基本牌当一张普通锦囊牌使用。然后若其不为你，你可执行另一项。",
  ["#steam1__duji"] = "睹机：你可以令一名角色展示手牌并选择一项",
  ["#steam__duji-choice"] = "睹机：请选择一项：将所有基本手牌当一张基本牌使用；将所有非基本牌当一张普通锦囊牌使用",
  ["#steam__duji-basic"] = "睹机：请选择一张基本牌",
  ["#steam__duji-non_basic"] = "睹机：请选择一张普通锦囊牌",
  ["duji_basic"] = "将所有基本手牌当一张基本牌使用",
  ["duji_non_basic"] = "将所有非基本牌当一张普通锦囊牌使用",
  ["#steam__duji-choiceuse"] = "睹机：要视为使用的牌",

  ["#steam__duji-use"] = "睹机：请视为使用【%arg】",
  
  ["steam__huajin"] = "化烬",
  [":steam__huajin"] = "锁定技，结束阶段，你将手牌数调整至你上次失去的牌数，若变化量不为1，你对一名角色造成1点火焰伤害，若你摸牌，改为对自己造成。",
  ["#steam__huajin-damage"] = "化烬：请选择一名角色，对其造成1点火焰伤害",
  ["@steam__huajin-last_lost"] = "化烬",
}

Fk:loadTranslationTable{
  ["$steam1__duji1"] = "因势利导，是为良计。",
  ["$steam1__duji2"] = "狭路相逢，唯勇进得胜，无委曲求全。",
  ["$steam__huajin1"] = "三尺微命，既已许国，难再许公。",
  ["$steam__huajin2"] = "或忠信而死节兮，或訑谩而不疑。",
  ["~steam_sjx__xunyu"] = "谢主隆恩。",
}
--]]

local zhugdan = General(extension, "ym_water__zhugdan", "wei", 4)--诸葛诞
Fk:addPoxiMethod{
  name = "steam__yicheng_recast",
  card_filter = function(to_select, selected, data)
    return #selected<4
  end,
  feasible = function(selected)
    return #selected == 4
  end,
  prompt = function ()
    return "#steam__yicheng_recast-ask"
  end
}
Fk:loadTranslationTable{
  ["#steam__yicheng_recast-ask"]="枙城：你可以重铸你与一名其他角色共4张牌",
  ["@steam__yicheng_recast"]="枙城",
}



zhugdan:addSkills{"steam__yicheng"}

Fk:loadTranslationTable{
  ["ym_water__zhugdan"] = "诸葛诞",
  ["#ym_water__zhugdan"] = "枙梦难成",
  ["designer:ym_water__zhugdan"] = "Sonaly",
  ["#steam__yicheng_delay"]="枙城",
  ["steam__yicheng"] = "枙城",
  [":steam__yicheng"] = [[出牌阶段或一名角色濒死时，你可以重铸你与一名其他角色共4张牌；若重铸的牌：包括【桃】，改为弃置；包括【杀】，
  你获得之且本回合【枙城】失效。]],
}


local lvmeng = General(extension, "ym_water__lvmeng", "wu", 4, 4)
lvmeng:addSkills{
  "steam__kewu",
  "steam__shetu",
}

Fk:loadTranslationTable{
  ["ym_water__lvmeng"] = "吕蒙",
  ["#ym_water__lvmeng"] = "白衣渡江",
  ["designer:ym_water__lvmeng"] = "墨客",

  ["~ym_water__lvmeng"] = "义封胆略过人，主公可任之……",
}

local zhonghui = General(extension, "ym_water__zhonghui", "wei", 4, 4) -- 钟会
zhonghui:addSkills{
  "steam__duwan",
}

Fk:loadTranslationTable{
  ["ym_water__zhonghui"] = "钟会",
  ["#ym_water__zhonghui"] = "天狼蚀光",
  ["designer:ym_water__zhonghui"] = "墨客",
  
}

Fk:loadTranslationTable{
  ["$steam__duwan1"] = "独善其身，完璧归赵。",
  ["$steam__duwan2"] = "独行其道，完我夙愿。",
  ["~ym_water__zhonghui"] = "天狼已逝，光不复存。",
}
--[[
楚 熊审 4/4 楚共王

堕慧：你造成或受到伤害时，受伤角色需弃置一半的手牌（自选取整方向）；若与上次被选择的取整方向不同，则其摸三张牌；若其可弃置更多张牌而未如此做，则此伤害+1。

踏北：限定技，轮次开始时，你可将至少两张牌当做【南蛮入侵】使用；本轮内，其他角色仅可以用等量张牌转换的方式使用或打出【杀】。

镝芒：主公技，锁定技，楚势力角色对其他势力角色使用牌，其他势力角色对你使用牌皆无距离限制。
--]]

local xiongshen = General(extension, "ym_water__xiongshen", "chu", 4, 4) -- 熊审
xiongshen:addSkills{
  "steam__duohui",
  "steam__tabei",
  "steam__dimang",
}

Fk:loadTranslationTable{
  ["ym_water__xiongshen"] = "熊审",
  ["#ym_water__xiongshen"] = "楚共王",
  ["designer:ym_water__xiongshen"] = "森博十夜",
}

Fk:loadTranslationTable{
  ["$steam__duohui1"] = "智慧如渊，深不可测。",
  ["$steam__duohui2"] = "堕入深渊，方见真知。",
  ["$steam__tabei1"] = "踏破北疆，威震四方。",
  ["$steam__tabei2"] = "南蛮入侵，无人能挡。",
  ["$steam__dimang1"] = "镝芒所指，无远弗届。",
  ["$steam__dimang2"] = "楚国之威，震慑天下。",
  ["~ym_water__xiongshen"] = "楚虽三户，亡秦必楚...",
}



Fk:loadTranslationTable{
  ["$steam__zhuozhuo1"] = "卓尔不群，卓然独立。",
  ["$steam__zhuozhuo2"] = "君子之风，雅量高深。",
  ["$steam__fenghan1"] = "讽谏之言，寒心刺骨。",
  ["$steam__fenghan2"] = "以德服人，以理服众。",
  ["$steam__jiangu1"] = "肩负古训，传承文明。",
  ["$steam__jiangu2"] = "宗族之技，血脉相连。",
  ["~ym_water__cuiyan"] = "君子之风，永世长存。",
}

local jiangwei = General(extension, "ym_water__jiangwei", "shu", 1, 9) -- 姜维
jiangwei.subkingdom = "jin"
jiangwei.endnote = "<br><font color='red' size = 2>臣欲使社稷危而复安，日月幽而复明。"
jiangwei:addSkills{
  "steam__youjiang",
  "steam__jinqi",
  "steam__mingju",
}
--[[
幽降1：伯约已尽力而为，奈何大汉国运衰微……
幽降2：亡国之将姜维，请明公驱弛。
烬起1：纵使困顿难行，亦当砥砺奋进！
烬起2：虽千万人，吾往矣！
明举1：继丞相之遗志，讨篡汉之逆贼！
明举2：可知天水姜伯约？
胜利：二十四代终未尽，今以一隅誓还天！
阵亡：我计不成，乃天命也……
--]]
Fk:loadTranslationTable{--添加翻译
  ["ym_water__jiangwei"] = "姜维",
  ["#ym_water__jiangwei"] = "独木参天",--称号
  ["designer:ym_water__jiangwei"] = "我来天地正秋风",--设计这

  ["$steam__mingju1"]="继丞相之遗志，讨篡汉之逆贼！",
  ["$steam__mingju2"]="可知天水姜伯约？",

  ["$steam__youjiang1"]="伯约已尽力而为，奈何大汉国运衰微……",
  ["$steam__youjiang2"]="亡国之将姜维，请明公驱弛。",
  ["$steam__jinqi1"]="纵使困顿难行，亦当砥砺奋进！",
  ["$steam__jinqi2"]="虽千万人，吾往矣！",
  ["~ym_water__jiangwei"]="我计不成，乃天命也……",
  ["!ym_water__jiangwei"]="二十四代终未尽，今以一隅誓还天！",


}


local cuiyan = General(extension, "ym_water__cuiyan", "wei", 3, 3) -- 崔琰
cuiyan:addSkills{
  "steam__zhuozhuo",
  "steam__fenghan",
  "steam__jiangu",
}

Fk:loadTranslationTable{
  ["ym_water__cuiyan"] = "崔琰",
  ["#ym_water__cuiyan"] = "君子风雅",
  ["designer:ym_water__cuiyan"] = "一十",
  ["illustrator:ym_water__cuiyan"] = "匠人绘",

}

General:new(extension, "ym_water__cuijue", "tang", 3, 3, General.Male):addSkills{"ym_water__huzhang","ym_water__yushi","steam__jiangu"}
Fk:loadTranslationTable{
    ["ym_water__cuijue"] = "崔珏",
    ["#ym_water__cuijue"] = "文宛鸳鸯",
    ["designer:ym_water__cuijue"] = "英历",
    ["cv:ym_water__cuijue"] = "白小贝",
    ["illustrator:ym_water__cuijue"] = "铁血王师/墨羽科技",

    ["~ym_water__cuijue"] = "寒风刺我脊梁骨，阎王召我作判官……",
}


local sunxian = General(extension, "ym_water__sunxian", "wu", 3, 3) -- 崔琰
sunxian:addSkills{
  "steam__congli",
  "steam__zhuquan",
 
}

Fk:loadTranslationTable{
  ["ym_water__sunxian"] = "孙宪",
  ["#ym_water__sunxian"] = "循循求进",
  ["designer:ym_water__sunxian"] = "一十",
  ["illustrator:ym_water__sunxian"] = "率土之滨",

}

local baichou = General(extension, "ym_water__baichou", "qun", 5) -- 白愁
baichou.endnote = "<br><font color='red' size = 2>大哥···若当日你用世界，或我有现在的力量与你决战··那可多好了...</font>"
baichou:addSkills{
  "steam__duzun",
  "steam__wudi",
}

Fk:loadTranslationTable{
  ["ym_water__baichou"] = "白愁",
  ["#ym_water__baichou"] = "大地之帝",
  ["designer:ym_water__baichou"] = "墨客",  -- 这里可以填写设计者
}


--[[
吴 吕蒙 4/4 白衣渡江

克己：锁定技，当你摸牌时，跳过牌堆中的【杀】。若你未于出牌阶段内使用或打出过【杀】，则你跳过弃牌阶段。

博图：出牌阶段限一次，你可以重铸四张花色不同的牌，然后视为使用一张【兵临城下】。
--]]

local mengmingshi = General(extension, "ym_water__mengmingshi", "qin", 4, 4) -- 孟明视
mengmingshi:addSkills{
  "steam__monao",
  "steam__qiedai",
  "steam__fenzhou",
}

Fk:loadTranslationTable{
  ["ym_water__mengmingshi"] = "孟明视",
  ["#ym_water__mengmingshi"] = "三忍成虎",
  ["designer:ym_water__mengmingshi"] = "森博十夜",
}

Fk:loadTranslationTable{
  ["$steam__monao1"] = "莫恼莫恼，心平气和。",
  ["$steam__monao2"] = "以德服人，以理服众。",
  ["$steam__qiedai1"] = "且怠且怠，静待时机。",
  ["$steam__qiedai2"] = "忍一时风平浪静。",
  ["$steam__fenzhou1"] = "焚舟破釜，背水一战。",
  ["$steam__fenzhou2"] = "破釜沉舟，志在必得。",
  ["~ym_water__mengmingshi"] = "三忍成虎，终成霸业...",
}



local luming = General(extension, "ym_water__luming", "wu", 4, 4) -- 吕蒙
luming:addSkills{
  "steam__keji",
  "steam__botu",
}


Fk:loadTranslationTable{
  ["ym_water__luming"] = "吕蒙",
  ["#ym_water__luming"] = "白衣渡江",
  ["designer:ym_water__luming"] = "自由圣安",
}
local liuyanzong = General(extension, "ym_water__liuyanzong", "song", 3, 3) -- 刘彦宗
liuyanzong:addSkills{
  "ym_water__suirang",
}
liuyanzong:addRelatedSkill("ym_water__gongnan")

Fk:loadTranslationTable{
  ["ym_water__liuyanzong"] = "刘彦宗",
  ["#ym_water__liuyanzong"] = "谋金克南",
  ["designer:ym_water__liuyanzong"] = "入归鸟",
}

local liufeng=General(extension, "ym_water__liufeng", "shu", 4, 4) -- 刘封
--[
liufeng:addSkills{
  "steam__anzhuo",
  "steam__jielin",
  "steam__ranliang",
}
--]]
Fk:loadTranslationTable{
  ["ym_water__liufeng"] = "刘封",
  ["#ym_water__liufeng"] = "螟蛉化龙",
  ["designer:ym_water__liufeng"] = "基地圈",
}


local liuzhi = General(extension, "ym_water__liuzhi", "han", 4, 4) -- 刘志
liuzhi:addSkills{
  "steam__danggu",
  "steam__biaojue",

  "steam__jihan",
}
Fk:loadTranslationTable{
  ["ym_water__liuzhi"] = "刘志",
  ["#ym_water__liuzhi"] = "昊天降罔",
  ["designer:ym_water__liuzhi"] = "入归鸟",




}

local wuyi = General(extension, "ym_water__wuyi", "shu", 4, 4) -- 吴懿
wuyi:addSkills{
  "ym_water__benxi",
}


Fk:loadTranslationTable{
  ["ym_water__wuyi"] = "吴懿",
  ["designer:ym_water__wuyi"] = "贿夜",
}

local taishici = General:new(extension, "ym_water__taishici", "wu", 4, 4)--
taishici:addSkills { "ym_water__yindou", "ym_water__jiefeng" }
--taishici.total_hidden = true
local taishici2 = General:new(extension, "ym_water__taishici2", "wu", 4, 4)--
taishici2:addSkills { "ym_water__yindou", "ym_water__jiefeng" }
taishici2.total_hidden = true
local taishici3 = General:new(extension, "ym_water__taishici3", "wu", 4, 4)--
taishici3:addSkills { "ym_water__yindou", "ym_water__jiefeng" }
taishici3.total_hidden = true
local taishici4 = General:new(extension, "ym_water__taishici4", "wu", 4, 4)--
taishici4:addSkills { "ym_water__yindou", "ym_water__jiefeng" }
taishici4.total_hidden = true
local taishici5 = General:new(extension, "ym_water__taishici5", "wu", 4, 4)--
taishici5:addSkills { "ym_water__yindou", "ym_water__jiefeng" }
taishici5.total_hidden = true
Fk:loadTranslationTable {
  ["ym_water__taishici"] = "太史慈",
  ["#ym_water__taishici"] = "寻吾天途",
  ["designer:ym_water__taishici"] = "墨客",

  ["ym_water__taishici2"] = "太史慈",
  ["#ym_water__taishici2"] = "寻吾天途",
  ["designer:ym_water__taishici2"] = "墨客",

  ["ym_water__taishici3"] = "太史慈",
  ["#ym_water__taishici3"] = "寻吾天途",
  ["designer:ym_water__taishici3"] = "墨客",

  ["ym_water__taishici4"] = "太史慈",
  ["#ym_water__taishici4"] = "寻吾天途",
  ["designer:ym_water__taishici4"] = "墨客",

  ["ym_water__taishici5"] = "太史慈",
  ["#ym_water__taishici5"] = "寻吾天途",
  ["designer:ym_water__taishici5"] = "墨客",

  ["~ym_water__taishici"] = "身证大义，魂念江东……",
  ["~ym_water__taishici2"] = "身证大义，魂念江东……",
  ["~ym_water__taishici3"] = "身证大义，魂念江东……",
  ["~ym_water__taishici4"] = "身证大义，魂念江东……",
  ["~ym_water__taishici5"] = "身证大义，魂念江东……",
}

General:new(extension, "ym_water__nanhualaoxian", "qun", 3, 3):addSkills { "ym_water__yufeng", "ym_water__tianshu" }
Fk:loadTranslationTable {
  ["ym_water__nanhualaoxian"] = "南华老仙",
  ["#ym_water__nanhualaoxian"] = "管道小鸟",
  ["~ym_water__nanhualaoxian"] = "天机求而近，执而远……",
}

General:new(extension, "ym_water__sunhanhua", "wu", 3, 3, General.Female):addSkills { "ym_water__chongxu", "ym_water__miaojian", "ym_water__lianhua" }
Fk:loadTranslationTable {
  ["ym_water__sunhanhua"] = "孙寒华",
  ["#ym_water__sunhanhua"] = "",
  ["~ym_water__sunhanhua"] = "",
}

--[[
陈式 4/4
乘舆入洛

逞勇
结束阶段，或造成伤害后，你可令下次受到或造成的伤害翻倍，可令下次摸或弃置的牌翻倍。
--]]

local chenshi = General(extension, "ym_water__chenshi", "shu", 4, 4) -- 陈式
chenshi:addSkills{
    "ym_water__chengyong",
}

Fk:loadTranslationTable{
    ["ym_water__chenshi"] = "陈式",
    ["#ym_water__chenshi"] = "乘舆入洛",
    ["designer:ym_water__chenshi"] = "昆曲",
}

General:new(extension, "ym_water__zhangfei", "shu", 4, 4, General.Male):addSkills { "ym_water__paoxiao" }
Fk:loadTranslationTable {
  ["ym_water__zhangfei"] = "张飞",
  ["#ym_water__zhangfei"] = "万人之敌",
  ["designer:ym_water__zhangfei"] = "亚当",

  ["~ym_water__zhangfei"] = "悔不听大哥教导！",
}


local guangtou = General(extension, "ym_water__guangtou", "han", 4, 4) -- 陈式
guangtou:addSkills{
    "steam__yuxianquzhi",
    "steam__qiongkubipu",
}

Fk:loadTranslationTable{
    ["ym_water__guangtou"] = "光头",
    ["#ym_water__guangtou"] = "司令",
    ["designer:ym_water__guangtou"] = "昆曲",
}

local zhongxingyin=General(extension, "ym_water__zhongxingyin", "jin", 5, 5)
zhongxingyin:addSkills{"steam__cengxue","steam__suohu"}

Fk:loadTranslationTable{
  ["ym_water__zhongxingyin"] = "中行寅",
  ["#ym_water__zhongxingyin"] = "眼观六赂",
  ["designer:ym_water__zhongxingyin"] = "森博十夜",
  ["illustrator:ym_water__zhongxingyin"] = "荆芥",
}
--[[
晋 中行寅 5/5 眼观六赂

层削：出牌阶段限一次，你可获得任意名手牌数之和小于你的角色各一张牌，然后这些角色需选择一项：1.发动“举义”，并视为对你使用一张【杀】；2.发动“层削”。

所呼：其他角色进行“选择一项”的操作时，你可令其选择是否交给你一张牌，若选择是，则中止此操作，否则你下次对其造成的伤害改为2。
--]]

--[[
吴 势吕蒙 4/4 ？？？？

克吾
涉经：其他角色进行“选择一项”的操作时，你可令其选择是否交给你一张牌，若选择是，则中止此操作，否则你下次对其造成的伤害改为2。
--]]

local shi_lvmeng=General(extension, "ym_water_shi__lvmeng", "wu", 4, 4)
shi_lvmeng:addSkills{
  "steam__kewu",
  "steam__shejing",
}

Fk:loadTranslationTable{
  ["ym_water_shi__lvmeng"] = "吕蒙",
  ["#ym_water_shi__lvmeng"] = "天道酬勤",
  ["designer:ym_water_shi__lvmeng"] = "墨客",
  ["illustrator:ym_water_shi__lvmeng"] = "枭瞳",

  ["$steam__kewu_ym_water_shi__lvmeng1"] = "谋大事者，藏于心而行于事。",
  ["$steam__kewu_ym_water_shi__lvmeng2"] = "君子厚德，有容乃大。",
  ["$steam__shetu_ym_water_shi__lvmeng1"] = "复取荆州，皆系此战矣！",
  ["$steam__shetu_ym_water_shi__lvmeng2"] = "此天亡你，赐吾此等良机！",
  ["~ym_water_shi__lvmeng"] = "不行德计，终，得此残躯……",
}

return extension

